<script setup>
import { urlToFile } from "@/utils/picToFile";

const onClick = async () => {
  const res = await urlToFile(
    "https://img1.baidu.com/it/u=2073852801,3087522035&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800"
  );
  console.log(res);
};
</script>

<template>
  <el-button @click="onClick">dian</el-button>
</template>

<style scoped lang="scss"></style>
